<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../jstl/taglibs.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="keywords" content="OVVI OTA Manager">
<meta name="description" content="OVVI OTA Manager">
<title>WQL后台管理系统</title>
<%@ include file="../jstl/common_static_resources.jsp"%>
<link rel="stylesheet" type="text/css" href="/static/lib/webuploader/0.1.5/webuploader.css" />
<script type="text/javascript" src="/static/lib/webuploader/0.1.5/webuploader.js"></script>
<script type="text/javascript" src="/static/lib/Sortable/Sortable.min.js"></script>
<script type="text/javascript" src="/static/web/js/advertiser/modify.js"></script>
</head>
<body>
	<div class="page-container page-container-add">
		<form class="form form-horizontal" id="form-advertiser-add" action="/advertiser/save" method="post">
			<input type="hidden" value="${advertiser.id }" name="id" />
			<input type="hidden" value="${advertiser.registertime }" name="registertime" />
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>广告商名称：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" maxlength="255" value="${advertiser.name }" placeholder="广告商名称" id="name" name="name">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>消息链接地址：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" maxlength="255" value="${advertiser.linkurl }" placeholder="消息链接地址" id="url" name="linkurl">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>位置：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<span class="select-box"> <select name="priority" class="select">
							<c:forEach begin="1" end="12" var="idx">
								<option value="${idx }" <c:if test="${advertiser.priority eq idx }">selected</c:if>>${idx }</option>
							</c:forEach>
					</select>
					</span>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>是否启用：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<span class="select-box"> <select name="enable" class="select">
							<option value="1" <c:if test="${advertiser.enable eq true }">selected</c:if>>启用</option>
							<option value="0" <c:if test="${advertiser.enable eq false }">selected</c:if>>禁用</option>
					</select>
					</span>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>图标上传：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<c:if test="${not empty advertiser.icon }">
						<img class="img_orignal" src="${advertiser.icon }" width="50" />
					</c:if>
					<div class="uploader-list-container">
						<input type="hidden" value="${advertiser.icon }" id="icon" name="icon">
						<div class="queueList">
							<div id="dndArea" class="placeholder">
								<div id="filePicker-2"></div>
								<p>或将图片拖到这里</p>
							</div>
						</div>
						<div class="statusBar" style="display: none;">
							<div class="progress">
								<span class="text">0%</span> <span class="percentage"></span>
							</div>
							<div class="info"></div>
							<div class="btns">
								<div id="filePicker2"></div>
								<div class="uploadBtn">开始上传</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
					<button class="btn btn-primary radius" type="submit">
						<i class="Hui-iconfont">&#xe632;</i> 保存并提交
					</button>
					<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
				</div>
			</div>
		</form>
	</div>
</body>
</html>